<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" href="css/front.css" rel="stylesheet" />
<script type="text/javascript" src="common/JsSupport.js"></script>
<title>记账软件</title>
</head>
<body>
	<div>
	<form method="post" action="validaterLogin.do" onsubmit="return check();">
			<table>
				<tr>
					<td><s:textfield name="userName" value="123">姓名：</s:textfield></td>
				</tr>
				<tr>
					<td><s:password name="password" value="123">密码：</s:password></td>
<!-- 					<td></td> -->
				</tr>
				<tr>
					<td><label id="textStatus"></label></td>
<!-- 					<td></td> -->
				</tr>
				<tr>
					<td><s:submit value="登陆"></s:submit><s:reset value="重置"></s:reset></td>
				</tr>

			</table>
				<input type="text" id="reLoginFlag" value="${request_re_login_flag}"/>
		<br>
		
		<br>
		
	</form>
	</div>
</body>
<script type="text/javascript">
	$(function() {
		if($("#reLoginFlag").val()=='true'){
			window.top.location.href="login.do";
			}
	});
	
	function check(){
		if($("#userName").val()==''||$("#password").val()==''){
// 			alert('用户名或密码不能为空！');
			$("#textStatus").html('用户名或密码不能为空！');
			return false;
			}
		return true;
		}

</script>

</html>